package frobagroup.repositories.backstage;


import frobagroup.entities.backstage.Comment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * Created by Tinsley on 2017/5/15.
 */
public interface CommentRepository extends MongoRepository<Comment,String> {

    List<Comment> findByPIdAndStatus(String pId, String status);
    List<Comment> findByPId(String pId);
    Page<Comment> findByStatus(String status, Pageable pageable);
}
